<%@ page pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <style>
            #table{
                float:left;
                width:550px;
                height:400px;
                margin-left:50px;
                margin-bottom: 50px;
                margin-right:20px;
                border:1px solid #666666;
                padding:0px;
            }

            #top{
                width:100%;
                 background:url(../image/biaoti.png);
                 height:60px;
                border-bottom: 1px solid #666666;
                padding-top:5px;
                font-size:14px;
                font-family:Arial, Helvetica, sans-serif;
            }
             .buttonok{
                width:45px;
                height: 25px;
                background:url(../image/ok.png);
                float:right;
              
                border:1px outset;
                text-align: center;
                padding-top:3px;
                margin-right: 10px;
                cursor: pointer;
                font-size:14px;
                font-family:Arial, Helvetica, sans-serif;
            }
                .buttoncancel{
                width:45px;
                height: 25px;
                background:url(../image/cancel.png);
                float:right;
              
                border:1px outset;
                text-align: center;
                padding-top:3px;
                margin-right: 10px;
                cursor: pointer;
                font-size:14px;
                font-family:Arial, Helvetica, sans-serif;
            }
        </style>
        <script language="javascript">
            function set_value(text,index)
            {
                var thisvalue=text.value;
                var i=parseInt(index);
                var list=document.getElementById('change').getElementsByTagName('span');
                
                list[i].innerHTML=text.value;
            }
            
            function submit()
            {
                var form=document.getElementById('thisform');
                form.submit();
            }            
        </script>
    </head>
    <body>
        <div id="table">
            <span id="top"><b>等级评分设置</b></span><br><br>
            <form id="thisform" action="config_Customer" method="post">
                <span style="margin-left:30px;font-size:14px;font-family:Arial, Helvetica, sans-serif;color:#666666;">社会环境评分权重：<input type="text" name="environmentWeight" size="20" value="<s:property value="environmentWeight" />"/></span><br><br>
            <span style="margin-left:30px;font-size:14px;font-family:Arial, Helvetica, sans-serif;color:#666666;">企业财务评分权重：<input type="text" name="financialWeight" size="20" value="<s:property value="financialWeight" />"/></span><br><br><br>

            <table id="change"style="font-size:14px;font-family:Arial, Helvetica, sans-serif;color:#666666">
                <tr>
                    <th width="40%"style="text-align:left;">等级</th>
                    <th width="60%"style="text-align:left;">分数</th>
                </tr>
                <tr>
                    <td>一星级</td>
                    <td>&lt<input type="text" size="10" name="oneStar" size="20" value="<s:property value="oneStar" />" onblur="set_value(this,0);"/></td>
                </tr>
                <tr>
                    <td>二星级</td>
                    <td>&nbsp;&nbsp;<span><s:property value="oneStar" /></span>&hellip;<input type="text" size="10" name="twoStar" size="20" value="<s:property value="twoStar" />" onblur="set_value(this,1);"/></td>
                </tr>
                <tr>
                    <td>三星级</td>
                    <td>&nbsp;&nbsp;<span><s:property value="twoStar" /></span>&hellip;<input type="text" size="10" name="threeStar" size="20" value="<s:property value="threeStar" />" onblur="set_value(this,2);"/></td>
                </tr>
                <tr>
                    <td>四星级</td>
                    <td>&nbsp;&nbsp;<span><s:property value="threeStar" /></span>&hellip;<input type="text" size="10" name="fourStar" size="20" value="<s:property value="fourStar" />" onblur="set_value(this,3);"/></td>
                </tr>
                <tr>
                    <td>五星级</td>
                    <td>&gt;<span><s:property value="fourStar" /></span></td>
                </tr>
            </table>
            </form>
            <div style="margin-top:50px;border-top:1px solid #666666;">
                <span class="buttonok" onClick="clear();"></span>
                <span class="buttoncancel" onClick="submit();"></span>
            </div>
        </div>
    </body>
</html>
